<template>
  <div class="page">
    <div class="result-box">
      <h2>无法搜索/错误页面</h2>
       <nuxt-link to="/">
        返回首页
      </nuxt-link>
      
    </div>
  </div>
</template>

<script>
export default {
  name: 'error404',
  asyncData({route, redirect}){
    let reg=/(\/)*/
    let path = route.fullPath.replace(reg, '/')
    redirect(path)
  },
  created(){
    console.log(2112121221, this.$route.fullPath)
  }
}
</script>

<style lang="scss" scoped>
  .page {
    background-color: #F5F4F9;
    min-height: 100vh;
    text-align: center;
    color: #9B9B9B;
    h2{
      font-size:32px;
      line-height: 60px;
    }
    h3{
      font-size:24px;
      line-height: 40px;
      margin-bottom: 10px;
    }
    a,.link{
      font-size:24px;
      color: #399EF6;
      line-height: 50px;
    }
    .result-box{
      padding-top: 200px;
      img{
        width: 200px;
        margin-bottom: 10px;
      }
    }
  }
</style>
